//---------------------------------------------------------------------------
#ifndef CPPgtoH
#define CPPgtoH

//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "Cadpad.h"
#include "CGAUGES.h"
#include "PHDS.h"
#include <Buttons.hpp>
#include <ExtCtrls.hpp>
#include <Menus.hpp>
#include "PHCombo.h"
#include "PHEdit.h"
#include "PHLabel.h"
#include "PHSpdBut.h"
#include "PHMemo.h"
#include "PHGridEd.h"
#include <Grids.hpp>

//---------------------------------------------------------------------------
class TCPPgto1 : public TCadPad1
{
  __published:  // IDE-managed Components
    PHLabel*  PHLabel1;
    PHEdit*  PHEdit1;
    PHLabel*  PHLabel2;
    PHEdit*  PHEdit2;
    PHLabel*  PHLabel3;
    PHComboBox*  PHComboBox1;
    PHLabel*  PHLabel4;
    PHEdit*  PHEdit3;
    PHSpeedButton*  PHSpeedButton1;
    PHEdit*  PHEdit4;
    PHLabel*  PHLabel5;
    PHEdit*  PHEdit5;
    PHLabel*  PHLabel7;
    PHEdit*  PHEdit7;
    PHLabel*  PHLabel8;
    PHEdit*  PHEdit8;
    PHLabel*  PHLabel6;
    PHEdit*  PHEdit6;
    PHLabel*  PHLabel9;
    PHEdit*  PHEdit9;
    PHLabel*  PHLabel10;
    PHEdit*  PHEdit10;
    PHLabel*  PHLabel11;
    PHEdit*  PHEdit11;
    PHLabel*  PHLabel12;
    PHEdit*  PHEdit12;
    PHLabel*  PHLabel13;
    PHEdit*  PHEdit13;
    PHLabel*  PHLabel14;
    PHEdit*  PHEdit14;
    PHLabel*  PHLabel15;
    PHEdit*  PHEdit15;
    PHSpeedButton*  PHSpeedButton2;
    PHEdit*  PHEdit16;
    PHEdit*  PHEdit17;
    PHEdit*  PHEdit18;
    PHLabel*  PHLabel16;
    PHComboBox*  PHComboBox2;
    PHLabel*  PHLabel17;
    PHEdit*  PHEdit19;
    PHLabel*  PHLabel18;
    PHMemo*  PHMemo1;
    PHDataSource*  DS1;
    TLabel*  Label1;
    TSpeedButton*  SpeedButton22;
    PHGridEdit*  PHGridEdit1;
    PHLabel*  PHLabel19;
    PHEdit*  PHEdit20;
    PHSpeedButton*  PHSpeedButton3;
    void __fastcall FormDestroy( TObject* Sender );
    void __fastcall FormShow( TObject* Sender );
    void __fastcall PHDS1AfterOpen( TObject* Sender );
    void __fastcall PHDS1BeforePost( TObject* Sender );
    void __fastcall PHDS1AfterInsert( TObject* Sender );
    void __fastcall PHDS1AfterRead( TObject* Sender );
    void __fastcall PHComboBox1Change( TObject* Sender );
    void __fastcall PHEdit15Change( TObject* Sender );
    void __fastcall PHDS1BeforeCancel( TObject* Sender );
    void __fastcall SpeedButton22Click( TObject* Sender );
    void __fastcall DS1BeforePost( TObject* Sender );
    void __fastcall PHDS1BeforeDelete( TObject* Sender );
    void __fastcall PHDS1StateChange( Estados State );
    void __fastcall DS1BeforeDelete( TObject* Sender );
    void __fastcall DS1AfterPost( TObject* Sender );
    void __fastcall PHEdit20Change( TObject* Sender );
    void __fastcall PHDS1AfterPost( TObject* Sender );
    void __fastcall PHDS1AfterEdit( TObject* Sender );
    void __fastcall PHDS1BeforeInsert( TObject* Sender );
  private:  // User declarations
    void __fastcall HabilitaCampos( void );
    void __fastcall VerificaTotalCheques( void );
    void __fastcall MarcaChequePago( int CodCheque, bool Marca );
    void __fastcall MarcaContaPagar( int ContaPagar, int Pagamento );
    struct PGTO*  Pg;
    int CodLanAlterar;
    int CodLanAlterarCheque;
    int SalvaContaPagarEdit;
  public:  // User declarations
    __fastcall TCPPgto1( TComponent* Owner );
    int Flag;
};

//---------------------------------------------------------------------------
extern PACKAGE TCPPgto1*  CPPgto1;
extern PACKAGE TCPPgto1*  CPPgto2;

//---------------------------------------------------------------------------
#endif

